package com.kun.server.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.kun.dao.ReportDao;
import com.kun.entity.CaseEntity;
import com.kun.server.ReportServer;
@Service("ReportServerImpl")
public class ReportServerImpl implements ReportServer {

	@Resource(name="ReportDaoImpl")
	private ReportDao reportDao;
	
	public String addCase(CaseEntity caseEntity) {
		
		return reportDao.addCase(caseEntity);
	}

	public List<CaseEntity> findAllCase(int id) {
		String hql = "from CaseEntity where customerid = ?";
		
		return reportDao.findAllCase(hql,id);
	}

}
